package com.model.basemodel.ui.fragment

import android.support.v4.content.ContextCompat
import com.model.basemodel.MainListActivity
import com.model.basemodel.R
import com.model.basemodel.ui.activity.base.BaseFragment
import kotlinx.android.synthetic.main.fragment_mine.*
import org.jetbrains.anko.support.v4.intentFor

/**
 * @ClassName MineFragment
 * @Description TODO
 * @Author ：WangZhuang
 * @Date : 2021/9/13 10:45
 * @Version :1.0
 */
class MyHomeFragment: BaseFragment() {
    override val layoutResId: Int = R.layout.fragment_mine

    companion object {
        fun newInstance(): MyHomeFragment {
            return MyHomeFragment()
        }
    }
    override fun initView() {
        fl_main.background = ContextCompat.getDrawable(activity!!,R.color.bg_default)
    }

    override fun initData() {
        startActivity(intentFor<MainListActivity>())
    }

}